package com.nbsaas.boot.shopArticle.rest.convert;

import com.nbsaas.boot.shopArticle.data.entity.ShopArticleDocument;
import com.nbsaas.boot.shopArticle.api.domain.simple.ShopArticleDocumentSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* -列表对象转换器
*/

public class ShopArticleDocumentSimpleConvert implements Converter<ShopArticleDocumentSimple, ShopArticleDocument> {




@Override
public ShopArticleDocumentSimple convert(ShopArticleDocument source) {
    ShopArticleDocumentSimple result = new ShopArticleDocumentSimple();

                result.setNote(source.getNote());
                result.setId(source.getId());
                result.setAddDate(source.getAddDate());
                result.setLastDate(source.getLastDate());


    return result;
}

}